﻿using RpcCentral.Model.DB;
using SqlSugarHelper;

namespace RpcCentral.DAL.Repository
{
    internal class ReduceInRankConfigDAL : IReduceInRankConfigDAL
    {
        private IRepository<ReduceInRankConfig> _Db;
        public ReduceInRankConfigDAL(IRepository<ReduceInRankConfig> db)
        {
            _Db = db;
        }

        public ReduceInRankConfig GetReduceInRank(long rpcMerId, long servrId)
        {
            return _Db.Get(a => a.RpcMerId == rpcMerId && a.ServerId == servrId);
        }

    }
}
